<?php
/* @var $this GamesLogroController */
/* @var $model GamesLogro */
$this->pageTitle = "Gamification";

$this->menu=array(
    array('label' => Yii::t('AweCrud.app', 'Create'), 'icon' => 'plus', 'url' => array('create')),
);
?>

<div class="widget blue">
    <div class="widget-title">
        <h4> <i class="icon-fire-extinguisher"></i> <?php echo Yii::t('AweCrud.app', 'Manage') ?> Logros</h4>
        <span class="tools">
            <a href="javascript:;" class="icon-chevron-down"></a>
        </span>
    </div>
    <div class="widget-body">
    <?php $this->widget('bootstrap.widgets.TbGridView', array(
            'id'=>'games-logro-grid',
            'type' => 'striped bordered hover advance',
            'dataProvider'=>$model->search(),
            'columns'=>array(
                'mensaje',
                'slug',
                'descripcion',
                'monedas',
                array(
                    'name'=>'imagen',
                    'type'=>'html',
                    'value'=>'(!empty($data->imagen))?CHtml::image(Yii::app()->baseUrl."/uploads/gamification/".$data->imagen,"",array("width"=>"50","heigth"=>"50")):""',

                ),
                array(
                    'class' => 'CButtonColumn',
                    'template' => '{update} {delete}',
                    'buttons' => array(
                        'update' => array(
                            'label' => '<button class="btn btn-primary"><i class="icon-pencil"></i></button>',
                            'options' => array('title' => 'Actualizar'),
                            'imageUrl' => false,
                        ),
                        'delete' => array(
                            'label' => '<button class="btn btn-danger"><i class="icon-trash"></i></button>',
                            'options' => array('title' => 'Eliminar'),
                            'imageUrl' => false,
                        )
                    ),
                    'htmlOptions' => array(
                        'width' => '80',
                    )
                ),
            ),
    )); ?>
    </div>
</div>